package me.zhengjie.exception;

import lombok.Getter;
import org.springframework.http.HttpStatus;

import static org.springframework.http.HttpStatus.BAD_REQUEST;

/**
 * 区块链执行异常
 */
@Getter
public class BlockChainBaseException extends RuntimeException {

    private Integer status = BAD_REQUEST.value();

    public BlockChainBaseException(String msg){
        super(msg);
    }

    public BlockChainBaseException(HttpStatus status, String msg){
        super(msg);
        this.status = status.value();
    }

}
